#ifndef THINK_THINK_CONSOLE_COMMAND_BUILD_H
#define THINK_THINK_CONSOLE_COMMAND_BUILD_H

static char* think_console_command_build =
	"\n"
	"// +----------------------------------------------------------------------\n"
	"// | ThinkPHP [ WE CAN DO IT JUST THINK ]\n"
	"// +----------------------------------------------------------------------\n"
	"// | Copyright (c) 2006~2015 http://thinkphp.cn All rights reserved.\n"
	"// +----------------------------------------------------------------------\n"
	"// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )\n"
	"// +----------------------------------------------------------------------\n"
	"// | Author: yunwuxin <448901948@qq.com>\n"
	"// +----------------------------------------------------------------------\n"
	"\n"
	"namespace think\\console\\command;\n"
	"\n"
	"use think\\console\\Command;\n"
	"use think\\console\\Input;\n"
	"use think\\console\\input\\Option;\n"
	"use think\\console\\Output;\n"
	"\n"
	"class Build extends Command\n"
	"{\n"
	"\n"
	"    /**\n"
	"     * {@inheritdoc}\n"
	"     */\n"
	"    protected function configure()\n"
	"    {\n"
	"        $this->setName(\'build\')\n"
	"            ->setDefinition([\n"
	"                new Option(\'config\', null, Option::VALUE_OPTIONAL, \"build.php path\"),\n"
	"                new Option(\'module\', null, Option::VALUE_OPTIONAL, \"module name\"),\n"
	"            ])\n"
	"            ->setDescription(\'Build Application Dirs\');\n"
	"    }\n"
	"\n"
	"    protected function execute(Input $input, Output $output)\n"
	"    {\n"
	"        if ($input->hasOption(\'module\')) {\n"
	"            \\think\\Build::module($input->getOption(\'module\'));\n"
	"            $output->writeln(\"Successed\");\n"
	"            return;\n"
	"        }\n"
	"\n"
	"        if ($input->hasOption(\'config\')) {\n"
	"            $build = include $input->getOption(\'config\');\n"
	"        } else {\n"
	"            $build = include APP_PATH . \'build.php\';\n"
	"        }\n"
	"        if (empty($build)) {\n"
	"            $output->writeln(\"Build Config Is Empty\");\n"
	"            return;\n"
	"        }\n"
	"        \\think\\Build::run($build);\n"
	"        $output->writeln(\"Successed\");\n"
	"\n"
	"    }\n"
	"}\n"
	"\n"
;
#endif